n = int(input())
scores = list(map(int, input().split()))
scores.sort()
mid = n // 2
if n % 2 == 0:
    print("Outgoing #: %d" % (mid))
    print("Introverted #: %d" % (mid))
    print("Diff = %d" % (sum(scores[mid:]) - sum(scores[:mid])))
else:
    print("Outgoing #: %d" % (mid + 1))
    print("Introverted #: %d" % (mid))
    print("Diff = %d" % (sum(scores[mid:]) - sum(scores[:mid])))
